package com.example.designpattenexample.mediator;

public class Test {
    public static void main(String[] args) {

        MarriageAgency agency = new MarriageAgencyImpl();
        Women women1 = new Women("w1",21,23,agency);
        Women women2 = new Women("w2",22,24,agency);
        Women women3 = new Women("w3",23,25,agency);

        Men men1 = new Men("m1",25,22,agency);
        Men men2 = new Men("m2",25,21,agency);
        Men men3 = new Men("m3",27,24,agency);

        women3.findPartner();
        men2.findPartner();


    }
}
